<?php
// +----------------------------------------------------------------------
// | QSCMS
// +----------------------------------------------------------------------
// | Copyright (c)  2025 https://www.qqss.net All rights reserved.
// +----------------------------------------------------------------------
// | Licensed QSCMS is not free software, commercial use must purchase official license from official website to avoid unnecessary legal disputes.
// +----------------------------------------------------------------------
// | Author: Contract 990504246@qq.com
// +----------------------------------------------------------------------

namespace app\common\model;

use think\Model;

class UserOrder extends Model
{
    // 与用户模型关联
    public function user()
    {
        return $this->belongsTo('User', 'user_id');
    }

    // 与商品订单关联
    public function order()
    {
        return $this->belongsTo('GoodsOrder', 'order_id');
    }
}